// Copyright (C) joyinter
// All rights reserved.
// 
// Author : Jiang Li
// Date   : 2004-12-17

#ifndef __SVR_TMQUEUE_H_COMMON_SVR_BASE__
#define __SVR_TMQUEUE_H_COMMON_SVR_BASE__

#pragma once

#include <common/svr_base/base_timer.h>
#include <common/svr_base/svr_asyncqueue.h>

namespace JoyServer
{


class CJoyServer;

class CJoyTmQueue : public CJoyTimerObject
{
public:
    CJoyServer*     m_server;
    CJoyAsyncQueue* m_asyncQueue;

    virtual CJoyAsyncQueue* AllocAsyncQueue();

public:
    CJoyTmQueue();
    virtual ~CJoyTmQueue();

    virtual bool Create(CJoyServer* pServer, DWORD dwElapse);
    virtual void Destroy();
};


} // namespace JoyServer

#endif  // __SVR_TMQUEUE_H_COMMON_SVR_BASE__